<?php
namespace slinks\extensions\onecms\core\model;


/**
 * Defines all parts of a menu.
 * 
 * @author Navid Mitchell
 *
 */
interface IMenuNode {
	
	/**
	 * Adds a child to this node.
	 * 
	 * @param IMenuNode $child
	 */
	public function addChild(IMenuNode $child);
	
	/**
	 * @return Boolean true if the node has children.
	 */
	public function hasChildren();
	
	/**
	 * @return array the children of this node.
	 */
	public function getChildren();
	
}